#include <iostream>
#include <cstring>
using namespace std;

//-------------mobile类
class mobile
{
public:
  char mynumber[11];
  void shownumber()
  {
    cout << "the phone is mobile:" << mynumber << endl;
  }
};

//--------mobilegsm类
class mobilegsm : public mobile
{
public:
  int memory;
  void showmemory()
  {
    cout << "the memory of gsm is" <<memory << endl;
  }
};

//--------mobilecdma类
class mobilecdma:public mobile
{
  public:
    int memory;
    void showmemory()
    {
      cout << "the memory of cdma is" << memory << endl;
    
    }
};

//-------mobilecell类
class mobilecell:public mobilegsm,public mobilecdma
{
  public:
    char OS[10];
    void showOS()
    {
      cout << "the OS of the phone is" << OS << endl;
    }
};

//------------main
int manin()
{
  mobilecell Python1;
  strcpy(Python1.OS, "Android");
  strcpy(Python1.mobilegsm::mynumber, "13023231");
  Python1.mobilegsm::memory = 2;
  strcpy(Python1.mobilecdma::mynumber, "13221321");
  Python1.mobilecdma::memory = 4;

  Python1.mobilegsm::shownumber();
  Python1.mobilecdma::shownumber();
  Python1.mobilegsm::showmemory();
  Python1.mobilecdma::showmemory();
}
